<template>
  <van-tabbar route>
        <van-tabbar-item replace to="/ground" icon="home-o">广场</van-tabbar-item>
        <van-tabbar-item replace to="/search" icon="search">搜索</van-tabbar-item>
        <van-tabbar-item @click="goPublish" icon="add-o">发布</van-tabbar-item>
        <van-tabbar-item replace to="/message" icon="comment-o">关注</van-tabbar-item>
        <van-tabbar-item replace to="/homePage" icon="smile-o">我的</van-tabbar-item>
  </van-tabbar>
</template>

<script>
export default {
  methods:{
    goPublish() {
      this.$router.push("/publish");
    }
  }
};
</script>

<style scoped>
</style>
